
//无按钮提示框
function alertsimple(con,timed)
{
   if(timed == null || timed == undefined || timed == ''){
	   timed = 2000;
	   }
   $("#insert").html("<div id='simple' style='position:fixed; top:45%; width:100%; display:none;'><div style='padding:15px 10px; background:#666; filter:alpha(opacity=80); -moz-opacity:0.8; -khtml-opacity: 0.8; opacity: 0.8; margin:auto; color:#FFF; width:40%; text-align:center; border-radius:5px; z-index:200;'>"+con+"</div></div>");
   $("#simple").fadeIn(300);
   setTimeout(alertsimpleend,timed);
}
function alertsimpleend()
{
   $("#simple").fadeOut(300);
   setTimeout(clearins,500);
}


//图片最大化显示
   $(".maxpic").click(function(){
     $("#insert").html("<table id='maxpic' border='0' cellspacing='0' cellpadding='0' style='position:fixed; top:0px; height:100%; bottom:0px; width:100%; display:none; z-index:200;'><tr><td style='background:#333333'><img src='"+$(this)[0].src+"' width='100%'></td></tr></table>");
	 $("#maxpic").fadeIn(200);
   });
   
   $("#insert").click(function(){
	 $("#maxpic").fadeOut(200);
	 setTimeout(clearins,500);
   });


//清空insert容器
function clearins()
{
   $("#insert").html("");
}